<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mobile Information</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        #app {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            width: 100%;
            text-align: center;
        }

        input[type="text"] {
            width: 80%;
            padding: 10px;
            margin: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        button {
            padding: 10px 20px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        button:hover {
            background-color: #0056b3;
        }

        span {
            display: block;
            margin-top: 10px;
        }

        .error {
            color: red;
            margin-top: 10px;
        }
    </style>
</head>
<body>
<div id="app">
    <label for="phone">请输入手机号：</label>
    <input type="text" id="phone" v-model="searchConditions.phone" @input="handleInput" placeholder="Enter phone number">
    <button @click="search">查询</button>
    <div v-if="mobile.sp" class="info">运营商：{{ mobile.sp }}</div>
    <div v-if="mobile.province" class="info">省份：{{ mobile.province }}</div>
    <div v-if="mobile.city" class="info">城市：{{ mobile.city }}</div>
    <div v-if="error" class="error">{{ error }}</div>
</div>

<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="js/app.js" type="module"></script>
</body>
</html>
